<?php
 include_once('../classes/class.edit.responsible.php');
    
  session_start();
    
  if (isset($_POST['editResponsible']))
  { 
    $editResponsible = new EditResponsible();  
    if($editResponsible->process())
    {
     echo "<script>loadResponsibles();</script>";   
     echo "<script>alert('Encargado modificado satisfactoriamente');</script>";
    }else
       {
        echo '<p class="error">';
        echo '<b>'.$editResponsible->show_errors().'</b>'; 
        echo '</p>';    
       }
  }
?>
